# 元组元素的访问
tup = (12,45,67,2.34,True,False,"hello")

# 访问元组的元素使用下标访问,默认从0开始
print(tup[0])
print(tup[-1])
 
# print(tup[7])   # IndexError: tuple index out of range

# 元组元素的值不能进行修改
# tup[3] = "jack"
# print(tup)   # 'tuple' object does not support item assignment

# 删除元组  del
del tup
print(tup)  # NameError: name 'tup' is not defined
